package com.whlilong.jxc.app;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.ICoolBarManager;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.jface.action.ToolBarManager;
import org.eclipse.swt.SWT;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.actions.ActionFactory;
import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction;
import org.eclipse.ui.application.ActionBarAdvisor;
import org.eclipse.ui.application.IActionBarConfigurer;

import com.whlilong.jxc.action.AboutAction;
import com.whlilong.jxc.action.CloseEditorAction;
import com.whlilong.jxc.action.SaleAction;

public class ClientActionBarAdvisor extends ActionBarAdvisor {

	    private IWorkbenchAction introAction;
		private Action about, closeEditor, sale;
		public ClientActionBarAdvisor(IActionBarConfigurer configurer) {
			super(configurer);
		}

		protected void makeActions(IWorkbenchWindow window) {
			introAction = ActionFactory.INTRO.create(window);
			register(introAction);
//			about = new AboutInfo(window);
//			register(about);
			sale = new SaleAction(window);
			register(sale);
			
		}

		protected void fillMenuBar(IMenuManager menuBar) {
			
		}
//		protected void fillCoolBar(ICoolBarManager coolBar){
//			IToolBarManager toolBar = new ToolBarManager(SWT.FLAT | SWT.SHADOW_OUT);
//			coolBar.add(toolBar);
//			toolBar.add(about);
//		}

	}
